home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 6151 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.7 KB  |  41 lines

  1. Newsgroups: comp.lang.ada,comp.lang.c++,comp.lang.c
  2. Path: roxi.rz.fht-mannheim.de!duz
  3. From: duz@roxi.rz.fht-mannheim.de (Dirk Zoller)
  4. Subject: Re: C++ vs Ada for large project
  5. Followup-To: comp.lang.ada,comp.lang.c++,comp.lang.c
  6. References: <w4wx5wc1a2.fsf@cln46ac> <4ffjrq$i8k@qualcomm.com> <4fgn1t$ku8@nntpa.cb.att.com>
  7. Sender: news@roxi.rz.fht-mannheim.de (NEWS - system account)
  8. Organization: Fachhochschule fuer Technik, Mannheim (FRG)
  9. Date: Sat, 10 Feb 96 20:12:32 CET
  10. X-Newsreader: TIN [version 1.2 PL2]
  11. Message-ID: <1996Feb10.201232.26568@roxi.rz.fht-mannheim.de>
  12.  
  13. Kenneth Almquist (ka@socrates.hr.att.com) wrote:
  14. : I was able to work around the problem, but probably spent a week doing
  15. : it, and this was on a relatively small program.  The larger the program,
  16. : the harder header files are to manage.
  17.  
  18. A week seems much for such a minor issue. But from my experience I can
  19. say that the most trouble in keeping a C program portable accross
  20. different unix platforms comes from differences in the header files
  21. provided by the different systems.
  22.  
  23. You could resort to something like
  24.  
  25. #include <the file with the correct alarm() decl>
  26. #define alarm(X)
  27. #include <the file with the other, wrong, alarm decls>
  28. #undef alarm
  29.  
  30. But this ugly hack doesn't work always.  Managing header files in a
  31. larger program can become a major pain. And C++ doesn't address this
  32. problem, au contraire it even makes it worse because of dependencies
  33. between class declarations and because when using templates much of the
  34. implementation code goes into the header files, where it doesn't belong.
  35.  
  36. I have no experience with large Ada projects yet and can't compare the
  37. practical use of the concepts though.
  38.  
  39. --
  40. duz@roxi.rz.fht-mannheim.de <Dirk Zoller>
  41.